package com.security.manage.search.repository;

import com.security.manage.search.model.Log;
import org.springframework.data.domain.Sort;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

import java.util.List;


public interface LogRepository extends ElasticsearchRepository<Log,Long> {
    List<Log> findFirst10ByUserIdAndBatchNumber(Long userId, String batchNumber, Sort sort);
}
